<?php
   class  ApiCenter_SalesApi_Model_Api2_Orderdata_Confirmorderdata  extends  Mage_Api2_Model_Resource {

       protected  function _loadVendor($vendorId){
           $vendor = Mage::getModel("vendors/vendor")->load($vendorId);
           if(!$vendor->getId()){
               $this->_critical("商家信息错误!",400);
           }
           return $vendor;
       }
       
       
 }